<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title><?php echo $conf['APP_NAME'];?> - <?php echo $filename; ?></title>
	<link rel="stylesheet" href="./css/style.css">
	<style>
		.viewedit{padding: 10px;background:#fff;}
		.textBtn{padding: 5px;border-bottom: 2px solid #eee;margin-bottom: 5px;}
		.textBtn .title{font-size: 15px;font-weight: bold;}
		.textBtn .title-name{color: red;padding: 5px;font-size: 15px;text-decoration: underline;}
		.textarea{height: 500px;}
		
	</style>
</head>
<body>
	<div class="content">
		<div class="header">
			<h1><i class="icon iconfont icon-max">&#xe68f;</i> 文件管理</h1>
		</div>
		<div class="nav">
					<span><i class="icon iconfont icon-mid">&#xe614;</i>路径 :</span>
					<input type="text" value="<?php echo $GLOBALS['now_dir']; ?>" disabled="disabled"> 
					<a class="btn btn-warning" href="<?php echo $GLOBALS['REFERER']; ?>">返回<i class="icon iconfont icon-min">&#xe682;</i></a>
				<a class="btn btn-info" href="<?php echo create_url('index','',$GLOBALS['root_path']); ?>"><i class="icon iconfont icon-min">&#xe702;</i> 根目录</a>
		</div>
		<div class="viewedit">
			<form action="<?php echo create_url('file','edit',$GLOBALS['now_file']); ?>" method="POST">
				<div class="textBtn">
					<span class="title">编辑:</span><span class="title-name"><?php echo $filename; ?></span>
					<input type="submit" class="btn btn-danger btn-sm icon iconfont icon-min" value="&#xe61b;保存">
					<input type="reset"  class="btn btn-warning btn-sm icon iconfont icon-min" value='&#xe60a;重置'>
				</div>
				<textarea name="content" class="textarea"><?php echo $content; ?></textarea>
				<!-- <input type="hidden" value="<?php echo $GLOBALS['now_file']; ?>"> -->
			</form>
		</div>
		<div class="copy">
			联系我:<a href="mailto:myhonour@jishuwan.com">EMAIL</a> <br> <a href="http://www.jishuwan.com">www.jishuwan.com</a>
		</div>
	</div>
	
</body>
</html>s